<!--
  @author mujunlin
  @since 2019/10/17 19:06
-->
<!--修改之后和C端公用页面-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:replace="common/common :: jscss"/>
</head>
<body>
<div class="layui-fluid">

    <div class="layui-card">
        <div class="layui-card-body">

            <form method="POST" action="" class="layui-form" lay-filter="zmn-form">
                <div class="layui-row">
                    <div class="layui-col-sm10">
                        <div class="layui-form-item">
                            <label class="layui-form-label">服务平台</label>
                            <div class="layui-input-inline" style="width:200px;">
                                <select name="plat" id="plat" lay-filter="plat" lay-verify="required"
                                        class="layui-disabled" disabled>
                                    <option value="" th:selected="${0 == obj.plat}">全部</option>
                                    <option th:value="${item.key}"
                                            th:text="${item.value}"
                                            th:selected="${item.key == obj.plat}"
                                            th:each="item:${platList}">平台
                                    </option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-row">
                    <div class="layui-col-sm10">
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-required">新单自动派单</label>
                            <div class="layui-input-block">
                                <input type="radio" name="autoStatusNew" value="3" title="指定自动派单"
                                       lay-filter="autoStatusNew"
                                       th:checked="${obj.autoStatusNew == 3}">
                                <input type="radio" name="autoStatusNew" value="1" title="关闭自动派"
                                       lay-filter="autoStatusNew"
                                       th:checked="${obj.autoStatusNew == 1}">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-row">
                    <div class="layui-col-sm10">
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-required">返修自动派单</label>

                            <div class="layui-input-block">
                                <input type="radio" name="autoStatusRework" value="2" title="源工程师自动派"
                                       th:checked="${obj.autoStatusRework == 2 || obj.autoStatusRework == null}">
                                <input type="radio" name="autoStatusRework" value="1" title="关闭自动派"
                                       th:checked="${obj.autoStatusRework == 1}">
                            </div>

                        </div>
                    </div>
                </div>

                <div class="layui-row">
                    <div class="layui-col-sm10">
                        <div class="layui-form-item">
                            <label class="layui-form-label">自动派单时间</label>
                            <div class="layui-input-inline">
                                <input type="text"
                                       name="autoTimeStr"
                                       id="autoTimeStr"
                                       class="layui-input"/>
                            </div>
                            <div class="layui-form-mid layui-word-aux">在对应时间段内，自动派单</div>
                        </div>
                    </div>
                </div>

                <div class="layui-row">
                    <div class="layui-col-sm10">
                        <div class="layui-form-item">
                            <label class="layui-form-label layui-form-required">状态</label>
                            <div class="layui-input-block">
                                <input type="radio" name="status" value="1" title="停用" th:checked="${obj.status == 1}">
                                <input type="radio" name="status" value="2" title="启用" th:checked="${obj.status == 2}">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-row">
                    <div class="layui-col-sm10">
                        <div class="layui-form-item submit">
                            <div class="layui-input-block">
                                <button class="layui-btn" th:if="${#authPermit.checkPermit('/orderconfig/distribute/plat/modifyf.action')}"
                                        lay-submit="" lay-filter="zmn-form-submit">保存</button>
                                <button type="button" id="cancel" class="layui-btn layui-btn-primary">取消</button>
                            </div>
                        </div>
                    </div>
                </div>

            </form>
        </div>
    </div>

</div>
</body>
</html>
<style>
    .layui-laydate-content > .layui-laydate-list {
        padding-bottom: 0px;
        overflow: hidden;
    }

    .layui-laydate-content > .layui-laydate-list > li {
        width: 50%
    }

    .merge-box .scrollbox .merge-list {
        padding-bottom: 5px;
    }
</style>
<script type="text/javascript" th:inline="javascript">
    var json = {
        obj: [[${obj}]]
    };

    layui.config({
        base: "/static/lay/",
        version: 202009041516
    }).extend({
        index: "lib/index",
        orderconfig_distribute_f_edit: "orderconfig/distribute/biztypef/zmn.orderconfig.distribute.edit",
    }).use(['index', 'orderconfig_distribute_f_edit']);

</script>